package com.yidu.hbatsams.dao;

import com.yidu.hbatsams.domain.AtsEmpCoach;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsEmpCoachMapper {
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer coachId);

    /**
     * 查询全部教练员
     * @return
     */
//    List<AtsEmpCoach> selectAll();


    /**
     * 新增
     * @mbg.generated 2019-10-29
     */
    int insert(AtsEmpCoach record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsEmpCoach record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsEmpCoach selectByPrimaryKey(Integer coachId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsEmpCoach record);

    /**
     * 修改
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsEmpCoach record);

    /**
     * 查询所有
     * @param coachName
     * @return
     */
    List<AtsEmpCoach> selectAll(String coachName,String startTime,String endTime);

    /**
     * 总行数
     * @return
     */
    Long count();

    /**
     * 科研教练员名称
     * @return
     */
    List<AtsEmpCoach> findByName();

    /**
     * 运动教练
     * @return
     */
    List<AtsEmpCoach> findByExerName();
    /**
     * 根据ID查询
     * @param coachId
     * @return
     */
    AtsEmpCoach findById(Integer coachId);

    /**
     * 根据教练员名称查ID
     * @param coachName
     * @return
     */
    AtsEmpCoach findByCoachId(String coachName);

    /**
     * 根据ID查询教练员
     * @param coachId
     * @return
     */
    List<AtsEmpCoach> findByCoachName(Integer coachId);

    /**
     * 根据教练员主键查专业
     * @param coachId
     * @return
     */
    AtsEmpCoach selectexpert(Integer coachId);

}